#ifndef __PHIDGETVALUEOBJECT_H__
#define __PHIDGETVALUEOBJECT_H__

#include "MonkeyObject.h"

class PhidgetManager;

class PhidgetValueObject : public MonkeyObject
{
  private:
	PhidgetManager *manager;
	static JSBool getProperty(JSContext *cx, JSObject *obj, jsid id, jsval *vp);
	static JSBool setProperty(JSContext *cx, JSObject *obj, jsid id, JSBool strict, jsval *vp);

  protected:
	virtual void RegisterObject(MonkeyContext *ctx, JSObject *parent);
  	
  public:
  	PhidgetValueObject(PhidgetManager *pm, MonkeyRuntime *rt);
};

#endif /* __PHIDGETVALUEOBJECT_H__ */

